﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MuaChungDAO;
using MuaChungDAO;
using MuaChungDTO;
using System.Data;
using System.Data.SqlClient;
using System.Collections;

namespace MuaChungDAO
{
    public class HinhAnhDealHandler
    {
        public static DataTable napTatCa()
        {
            return NhomMuaHandler.napTongQuat("select * from HinhAnhDeal");
        }

        public static DataTable napTheoID(string dealID)
        {
            return NhomMuaHandler.napTongQuat("select * from HinhAnhDeal where DealId = " + dealID);
        }

        private HinhAnhDealDAO data = new HinhAnhDealDAO();
        private HinhAnhDealDTO info = new HinhAnhDealDTO();

        public ArrayList getDsHinhAnhDeal()
        {
            return data.getDsHinhAnhDeal();
        }

        public ArrayList getDsHinhAnhDealTheoId(string id)
        {
            return data.getHinhAnhDealTheoID(id);
        }
    }
}
